<h1>Editando notícia</h1>

 <% form_for(@post) do |f| %>
  <%= render :partial => "form" , :locals => {:f => f } %>

  <p>
    <%= f.submit "Atualizar" %>
  </p>
<% end %>

<%= link_to 'Visualizar', @post %> |
<%= link_to 'Voltar', posts_path %>

